import { Module } from '@nestjs/common';
import { JwtModule } from '@nestjs/jwt';
import configuration from '../config/configuration';
import { ConfigModule } from '@nestjs/config';

@Module({
  imports: [
    ConfigModule,
    JwtModule.register({
      global: true,
      //   从config中取值
      //   secret: ,
      signOptions: { expiresIn: '60s' },
    }),
  ],
})
export class AuthModule {}
